


function angel(){
	var context = $("#xiao").serialize();
	// alert(context);
	var pain = $("#pain").val();
	var spark = CKEDITOR.instances.Content.getData();
	//alert(spark);
	$.ajax( {
		type : "GET",
		url : "http://localhost:8080/Watson/edit.do?" + context + "&content="
				+ spark,
		//data: {"page":pi,"rows":ps},  
		async : false,
		dataType : 'text',
		success : function(data) {
			//alert(data);
		if (data) {
			alert("OK , Sparking Has Created!");
			// $("input").val(""); 
		$('input:radio[name=top]').attr('checked', false);
		$("#pain").val("");

		CKEDITOR.instances.Content.setData("");

	} else if (data == null) {
		alert("Sorry , Sparking Creates Failed!");
	}
}
	});

}


function heaven() {
	var context = $("#xiao").serialize();
	// alert(context);
	var pain = $("#pain").val();
	var spark = CKEDITOR.instances.Content.getData();
	//alert(spark);
	$.ajax( {
		type : "GET",
		url : "http://localhost:8080/Watson/danel.do?" + context + "&content="
				+ spark,
		//data: {"page":pi,"rows":ps},  
		async : false,
		dataType : 'text',
		success : function(data) {
			//alert(data);
		if (data) {
			alert("OK , Sparking Has Created!");
			// $("input").val(""); 
		$('input:radio[name=top]').attr('checked', false);
		$("#pain").val("");

		CKEDITOR.instances.Content.setData("");

	} else if (data == null) {
		alert("Sorry , Sparking Creates Failed!");
	}
}
	});

}

function split() {

	location.href = "sparkform.jsp";
}
